Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: follow-up fixes on bootstrappingclient mode after integration testing with v1 #544

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

comtalyst
Copy link
Collaborator

@comtalyst comtalyst commented Oct 26, 2024

Fixes #

Description
KubeletConfig retrieved from nodeClaim doesn't seem to have a proper defaulting(?), which could returns invalid values (e.g., out of range) when populating ProvisionProfile. The logic added here should isolate non-pointer values (which cannot be "unpopulated" by being nil) and have an empty check.

Also, new unregistered startup taints defaulting method went under the radar during the merge, making it ineffective for CustomScripts bootstrapping. This should fix it, and have similar spots scanned.

How was this change tested?

  • Manual provisioning test
  • Inspecting ProvisionProfile values

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

Release Note

NONE

@coveralls
Copy link

coveralls commented Oct 26, 2024

Pull Request Test Coverage Report for Build 11547194060

Details

  • 13 of 27 (48.15%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.02%) to 94.234%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/providers/imagefamily/customscriptsbootstrap/provisionclientbootstrap.go 0 14 0.0%
Files with Coverage Reduction New Missed Lines %
pkg/providers/imagefamily/resolver.go 1 91.4%
Totals Coverage Status
Change from base Build 11509706996: -0.02%
Covered Lines: 37149
Relevant Lines: 39422

💛 - Coveralls

@comtalyst comtalyst changed the title fix: KubeletConfig not defaulted properly gives invalid values for ProvisionProfile in bootstrappingclient mode fix: follow-up fixes on bootstrappingclient mode after integration testing with v1 Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants